<template>
	<view>
		<u-cell-group>
			<u-cell title="个人资料设置" isLink center url="/pages/setting/selfSetting"></u-cell>
			<u-cell v-if="isAdmin" title="商家入驻审核入口" isLink center url="/pages/setting/toExamine/toExamine"></u-cell>
			<u-cell title="退出登录" @click="exit"></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isAdmin:false
			}
		},
		onLoad() {
			this.isAdmin = uni.getStorageSync("userinfo").id==0
		},
		methods: {
			exit() {
				uni.showModal({
					content: "退出登录",
					success: (res) => {
						if (res.confirm) {
							uni.clearStorageSync()
							uni.navigateBack({
								delta: 1
							})
						}
					}
				})
			},
			
		}
	}
</script>

<style>

</style>
